<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">

    <table v-for="user in userList">
        <tr>
            <td>{{user.username}}</td>
        </tr>
    </table>

</div>



<script src="axios.min.js"></script>
<script src="vue.js"></script>
<script>
    var con={
        el:"#app",
        data:{
            userList:[]
        },
        methods:{
            selectAll:function(){
                let url="http://localhost:8080/findAll";
                axios.get(url).
                    then(function(res){
                        this.userList=res;
                }).
                    catch();
            }
        },
        mounted:function(){
            this.selectAll();
        }
    }
    var vue=new Vue(con);
</script>
</body>
</html>